#ifndef BRIGHTNESSCONTRASTDIALOG_H
#define BRIGHTNESSCONTRASTDIALOG_H

#include <QDialog>

class QPushButton;
class QSlider;
class QLabel;

class BrightnessContrastDialog : public QDialog
{
    Q_OBJECT
public:
    explicit BrightnessContrastDialog(QWidget *parent = Q_NULLPTR, Qt::WindowFlags f = Qt::WindowFlags());
    virtual ~BrightnessContrastDialog();

private:
    void initDialog();
    void connetSignalToSlots();
    virtual void changeEvent(QEvent *event);
    void initTrans();

    void execBrightnessContrast();

public slots:
    void changeBrightnessSlot(int value);
    void changeContrastSlot(int value);
    void changeGammaSlot(int value);
    void confirmSlot();

private:
    QLabel* m_pBrightnessLabel;
    QLabel* m_pContrastLabel;
    QLabel* m_pGammaLabel;
    QSlider* m_pBrightnessSlider;
    QSlider* m_pContrastSlider;
    QSlider* m_pGammaSlider;

    int m_nBrightness;
    double m_nContrast;
    double m_nGamma;

    QPushButton* m_pConfirmButton;
};
#endif // BRIGHTNESSCONTRASTDIALOG_H
